import React from 'react';
import { addDecorator, addParameters } from '@storybook/react';
import { ThemeProvider } from 'styled-components'
import theme from '../src/theme';
import 'style.css';

addDecorator((storyFn) =>
  <ThemeProvider theme={theme}>{storyFn()}</ThemeProvider>
)

addParameters({
  options: {
    showRoots: true,
  }
})


/* export const parameters = {
  actions: { argTypesRegex: "^on[A-Z].*" },
} */

